<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Fontconfig-2.13.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="freetype2.html" title=
          "FreeType-2.10.1">Prev</a>
          <p>
            FreeType-2.10.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fribidi.html" title="FriBidi-1.0.9">Next</a>
          <p>
            FriBidi-1.0.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="fontconfig" name="fontconfig"></a>Fontconfig-2.13.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Fontconfig
        </h2>
        <p>
          The <span class="application">Fontconfig</span> package contains a
          library and support programs used for configuring and customizing
          font access.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.1.tar.bz2">
                https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.1.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 36cdea1058ef13cbbfdabe6cb019dc1c
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 16 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Fontconfig Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="freetype2.html" title=
          "FreeType-2.10.1">FreeType-2.10.1</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../pst/docbook-utils.html" title=
          "DocBook-utils-0.6.14">DocBook-utils-0.6.14</a> and <a class="xref"
          href="libxml2.html" title="libxml2-2.9.10">libxml2-2.9.10</a>,
          <a class="xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>)
        </p>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you have <span class="application">DocBook Utils</span>
            installed and you remove the <em class=
            "parameter"><code>--disable-docs</code></em> parameter from the
            <span class="command"><strong>configure</strong></span> command
            below, you must have <a class="xref" href=
            "perl-modules.html#perl-sgmlspm" title=
            "SGMLSpm-1.1">SGMLSpm-1.1</a> and <a class="xref" href=
            "../pst/texlive.html" title=
            "texlive-20190410-source">texlive-20190410</a> installed also, or
            the <span class="application">Fontconfig</span> build will fail.
          </p>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/Fontconfig">http://wiki.linuxfromscratch.org/blfs/wiki/Fontconfig</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Fontconfig
        </h2>
        <p>
          Make sure the system regenerates src/fcobjshash.h.
        </p>
        <pre class="userinput">
<kbd class="command">rm -f src/fcobjshash.h</kbd>
</pre>
        <p>
          Install <span class="application">Fontconfig</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --localstatedir=/var \
            --disable-docs       \
            --docdir=/usr/share/doc/fontconfig-2.13.1 &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you did not remove the <em class=
          "parameter"><code>--disable-docs</code></em> parameter from the
          <span class="command"><strong>configure</strong></span> command,
          you can install the pre-generated documentation by using the
          following commands as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class="command">install -v -dm755 \
        /usr/share/{man/man{1,3,5},doc/fontconfig-2.13.1/fontconfig-devel} &amp;&amp;
install -v -m644 fc-*/*.1         /usr/share/man/man1 &amp;&amp;
install -v -m644 doc/*.3          /usr/share/man/man3 &amp;&amp;
install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &amp;&amp;
install -v -m644 doc/fontconfig-devel/* \
                                  /usr/share/doc/fontconfig-2.13.1/fontconfig-devel &amp;&amp;
install -v -m644 doc/*.{pdf,sgml,txt,html} \
                                  /usr/share/doc/fontconfig-2.13.1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-docs</code></em>: This switch
          avoids building the documentation (the release tarball includes
          pre-generated documentation).
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Fontconfig
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="fontconfig-config" name="fontconfig-config"></a>
          </h3>
          <h4 class="title">
            <a id="fontconfig-config" name="fontconfig-config"></a>Config
            Files
          </h4>
          <p>
            <code class="filename">/etc/fonts/*, /etc/fonts/conf.d/* and
            /usr/share/fontconfig/conf.avail/*</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006457159312" name=
            "idm140006457159312"></a>Configuration Information
          </h4>
          <p>
            The main configuration file for <span class=
            "application">Fontconfig</span> is <code class=
            "filename">/etc/fonts/fonts.conf</code>. Generally you do not
            want to edit this file. It will also read <code class=
            "filename">/etc/fonts/local.conf</code> and any files in
            <code class="filename">/etc/fonts/conf.d</code>. To put a new
            font directory in the configuration, create (or update) the
            <code class="filename">/etc/fonts/local.conf</code> file with
            your local information or add a new file in <code class=
            "filename">/etc/fonts/conf.d</code>. The default location of
            fonts in <span class="application">Fontconfig</span> is:
          </p>
          <div class="itemizedlist">
            <ul class="compact">
              <li class="listitem">
                <p>
                  /usr/share/fonts
                </p>
              </li>
              <li class="listitem">
                <p>
                  ~/.local/share/fonts
                </p>
              </li>
              <li class="listitem">
                <p>
                  ~/.fonts <span class="emphasis"><em>(this is now
                  deprecated, but for the moment it still works)</em></span>
                </p>
              </li>
            </ul>
          </div>
          <p>
            <span class="application">Fontconfig</span> also ships many
            example configuration files in the <code class=
            "filename">/usr/share/fontconfig/conf.avail</code> directory.
            Symlinking specific files to <code class=
            "filename">/etc/fonts/conf.d</code> will enable them. The default
            setup is generally good enough for most users. See <code class=
            "filename">/etc/fonts/conf.d/README</code> for a description of
            the configuration files.
          </p>
          <p>
            More information about configuring <span class=
            "application">Fontconfig</span> can be found in the user's manual
            in <a class="ulink" href=
            "file:///usr/share/doc/fontconfig-2.13.1/fontconfig-user.html">file:///usr/share/doc/fontconfig-2.13.1/fontconfig-user.html</a>.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">fc-cache, fc-cat, fc-conflist, fc-list,
              fc-match, fc-pattern, fc-query, fc-scan, and fc-validate</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libfontconfig.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/fonts, /usr/include/fontconfig,
              /usr/share/doc/fontconfig-2.13.1, /usr/share/fontconfig,
              /usr/share/xml/fontconfig, and /var/cache/fontconfig</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="fc-cache" name="fc-cache"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-cache</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to create font information caches.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-cat" name="fc-cat"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-cat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to read font information caches.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-conflist" name="fc-conflist"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-conflist</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    shows the ruleset files' information on the system.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-list" name="fc-list"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-list</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to create font lists.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-match" name="fc-match"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-match</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to match available fonts, or find fonts that
                    match a given pattern.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-pattern" name="fc-pattern"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-pattern</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to parse pattern (empty pattern by default) and
                    show the parsed result.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-query" name="fc-query"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-query</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to query fonts files and print resulting
                    patterns.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-scan" name="fc-scan"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-scan</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to scan font files and directories, and print
                    resulting patterns.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fc-validate" name="fc-validate"></a><span class=
                    "term"><span class=
                    "command"><strong>fc-validate</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to validate font files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libfontconfig" name=
                    "libfontconfig"></a><span class="term"><code class=
                    "filename">libfontconfig.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions used by the <span class=
                    "application">Fontconfig</span> programs and also by
                    other programs to configure or customize font access.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-19 01:44:08 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="freetype2.html" title=
          "FreeType-2.10.1">Prev</a>
          <p>
            FreeType-2.10.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fribidi.html" title="FriBidi-1.0.9">Next</a>
          <p>
            FriBidi-1.0.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
